package ooday04.homework;

import ooday03.Swim;

//Fish类：继承Animal、实现Swim接口，重写eat()、重写swim()
public class Fish extends Animal implements Swim {
    Fish(String name,int age,String color){
        super(name ,color,age);
    }

    void eat(){
        System.out.println(name+"喜欢游泳,吃虾米");
    }
    public void swim(){
        System.out.println(name+"可以游一万米");
    }
}
